<template>
  <div>
    <div class="header">
      <van-icon name="arrow-left" @click="leftClick" />
      <div class="center">{{title}}</div>
      <van-icon name="wap-home-o" @click="indexClick" />
    </div>
  </div>
</template>

<script>
export default {
  props:["title"],
  data() {
    return {};
  },
  methods: {
    leftClick() {
      this.$router.go(-1);
    },
    indexClick() {
      this.$router.push("/home/cust");
    },
  },
};
</script>
 
<style lang="less" scoped>
 .header {
    height: .3rem;
    background-color: #003399;
    padding: 0.1rem;
    display: flex;
    justify-content: space-between;
    .van-icon {
      font-size: 0.28rem;
      color: #fff;
    }
    .center {
        font-size: .18rem;
        color: #fff;
        margin-top: .06rem;
    }
  }
</style>